home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / mail < prev    next >
Encoding:
Text File  |  2001-03-21  |  637 b   |  25 lines

  1. Synopsis:
  2.    on [<modes>]mail [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client detects that the user has new
  6.    email locally.  It relies on MAIL being non-zero.
  7.  
  8. Parameters:
  9.    $0    number of new email messages
  10.    $1    total number of email messages in user's mailbox
  11.  
  12. Examples:
  13.    To keep the new mail message grammatically correct:
  14.       on ^mail "*" {
  15.          echo *** You have $0 new message${[$0] > 1 ? [s] : []}, $1 total
  16.       }
  17.  
  18. See Also:
  19.    set(4) mail
  20.  
  21. Other Notes:
  22.    This hook has no control over the extended output given when MAIL is set
  23.    to 2.
  24.  
  25.